<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
  </head>
  
  <body>
    
    <% 
	    Map map=new HashMap();
	    map.put("百度","http://www.baidu.com/");
	    map.put("雅虎","http://cn.yahoo.com/");
	    map.put("谷歌","http://www.google.com/");
	    request.setAttribute("map",map);
    %>
    <table border="1" width="100%">
    <c:forEach items="${map}" var="entry">
    	<tr>
	    	<td><c:out value="${entry.key}" /></td>
	    	<td><c:out value="${entry.value}" /></td>
    	</tr>
    </c:forEach><br/>
    </table>
  </body>
</html>
